package com.cskaoyan.controller.admin;


import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;

import com.cskaoyan.service.admin.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class LogController {

    @Autowired
    LogService logService;

    @RequestMapping("/list")
    public BaseRespVo getLogs(Integer page,Integer limit,String name){

        CommonData logList = logService.getLogList(page, limit, name);

        BaseRespVo ok = BaseRespVo.ok(logList);

        return ok;
    }

}
